﻿<UserControl x:Class="TouchExplorer.Controls.FilesToolbar"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:touch="clr-namespace:TouchControls;assembly=TouchControls" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <Style x:Key="MenuTile" TargetType="touch:TouchMenu">
            <Setter Property="Padding" Value="8 2 8 2" />
            <Setter Property="Margin" Value="0 0 0 6" />
            <Setter Property="IconSize" Value="32" />
        </Style>
    </UserControl.Resources>
    <Border Background="#44000000" Width="48" CornerRadius="3">
        <StackPanel VerticalAlignment="Top">
            <touch:TouchMenu x:Name="FolderMenu" OnMenuOpening="FolderMenu_OnMenuOpening" Text="Folder" Icon="{StaticResource ImgToolbarFolder}" Style="{StaticResource MenuTile}">
                <touch:TouchMenuItem x:Name="FolderMenuCopy" Header="Copy" MenuTileSize="70" Icon="{StaticResource IcoCopy}" Click="FolderCopy"/>
                <touch:TouchMenuItem x:Name="FolderMenuCut" Header="Cut" MenuTileSize="70" Icon="{StaticResource IcoCut}" Click="FolderCut"/>
                <touch:TouchMenuItem x:Name="FolderMenuFav" Header="Fav." Icon="{StaticResource IcoFavorite}" Click="FolderFav"/>
                <touch:TouchMenuItem x:Name="FolderMenuPaste" Header="Paste" Icon="{StaticResource IcoRun}" Click="FolderPaste"/>
                <touch:TouchMenuItem x:Name="FolderMenuDel" Header="Delete" Icon="{StaticResource IcoDelete}" Click="FolderDelete"/>                
            </touch:TouchMenu>
           <touch:TouchMenu Text="Display" Icon="{StaticResource ImgToolbarDisplay}" Style="{StaticResource MenuTile}">
                <touch:TouchMenuItem Header="List" Icon="{StaticResource ImgDisplayList}" Click="DisplayList"/>
                <!--<touch:TouchMenuItem Header="Thumbs" Icon="{StaticResource ImgDisplayThumb}" Click="DisplayList"/>-->
                <touch:TouchMenuItem Header="Slides" Icon="{StaticResource ImgDisplaySlide}" Click="DisplaySlide"/>
            </touch:TouchMenu>
           <touch:TouchMenu Text="Sort" Icon="{StaticResource ImgToolbarSort}" Style="{StaticResource MenuTile}">
                <touch:TouchMenuItem Header="By name" x:Name="SortByName" Icon="{StaticResource ImgSortByName}">
                    <touch:TouchMenuItem Header="Asc" Icon="{StaticResource ImgSortAsc}" Click="SortItem_Click" CommandParameter="Asc"/>
                    <touch:TouchMenuItem Header="Desc" Icon="{StaticResource ImgSortDesc}" Click="SortItem_Click" CommandParameter="Desc"/>
                </touch:TouchMenuItem>
                <touch:TouchMenuItem Header="By size" x:Name="SortBySize" Icon="{StaticResource ImgSortBySize}">
                    <touch:TouchMenuItem Header="Asc" Icon="{StaticResource ImgSortAsc}" Click="SortItem_Click" CommandParameter="Asc"/>
                    <touch:TouchMenuItem Header="Desc" Icon="{StaticResource ImgSortDesc}" Click="SortItem_Click" CommandParameter="Desc"/>
                </touch:TouchMenuItem>
                <touch:TouchMenuItem Header="By date" x:Name="SortByDate" Icon="{StaticResource ImgSortByDate}">
                    <touch:TouchMenuItem Header="Asc" Icon="{StaticResource ImgSortAsc}" Click="SortItem_Click" CommandParameter="Asc"/>
                    <touch:TouchMenuItem Header="Desc" Icon="{StaticResource ImgSortDesc}" Click="SortItem_Click" CommandParameter="Desc"/>
                </touch:TouchMenuItem>
                <touch:TouchMenuItem Header="By ext" x:Name="SortByExtension" Icon="{StaticResource ImgSortByExtension}">
                    <touch:TouchMenuItem Header="Asc" Icon="{StaticResource ImgSortAsc}" Click="SortItem_Click" CommandParameter="Asc"/>
                    <touch:TouchMenuItem Header="Desc" Icon="{StaticResource ImgSortDesc}" Click="SortItem_Click" CommandParameter="Desc"/>
                </touch:TouchMenuItem>
            </touch:TouchMenu>
           <touch:TouchMenu Text="Copy" Icon="{StaticResource ImgToolbarCopy}" Padding="0" Style="{StaticResource MenuTile}">
               <touch:TouchMenuItem Header="All" MenuTileSize="70" Icon="{StaticResource ImgToolbarAll}" Click="CopyAll" />
                <touch:TouchMenuItem Header="Selected" MenuTileSize="70" Icon="{StaticResource ImgToolbarSelected}" Click="CopySelected" />
            </touch:TouchMenu>
           <touch:TouchMenu Text="Cut" Icon="{StaticResource ImgToolbarCut}" Style="{StaticResource MenuTile}">
                <touch:TouchMenuItem Header="All" MenuTileSize="70" Icon="{StaticResource ImgToolbarAll}" Click="CutAll" />
                <touch:TouchMenuItem Header="Selected" MenuTileSize="70" Icon="{StaticResource ImgToolbarSelected}" Click="CutSelected"/>
            </touch:TouchMenu>
           <touch:TouchMenu Text="Fav." Icon="{StaticResource ImgToolbarFavorite}" Style="{StaticResource MenuTile}">
                <touch:TouchMenuItem Header="All" MenuTileSize="70" Icon="{StaticResource ImgToolbarAll}" Click="FavAll" />
                <touch:TouchMenuItem Header="Selected" MenuTileSize="70" Icon="{StaticResource ImgToolbarSelected}" Click="FavSelected"/>
            </touch:TouchMenu>
           <touch:TouchMenu Text="Delete" Icon="{StaticResource ImgToolbarDelete}" Style="{StaticResource MenuTile}">
                <touch:TouchMenuItem Header="All" MenuTileSize="70" Icon="{StaticResource ImgToolbarAll}" Click="DeleteAll" />
                <touch:TouchMenuItem Header="Selected" MenuTileSize="70" Icon="{StaticResource ImgToolbarSelected}" Click="DeleteSelected" />
            </touch:TouchMenu>
        </StackPanel>
    </Border>
</UserControl>
